/****************************************************************
 *This file is define.h
 ****************************************************************/
#ifndef __DEFINE_H_
#define __DEFINE_H_

#include "include.h"

typedef struct pthread_socket
{
	int sockfd;
	struct in_addr client_addr;
	unsigned short client_port;

}pthread_socket_message;

//system printf switch
#define TST_CODE_SWITCH

//GET net command port
#define NET_COMMAND_PORT					20163

//net receive command buffer length
#define NET_COMMAND_BUF_LEN 				2000

//return status
#define ERR_FLAG							0x45
#define RIGHT_FLAG							0x23
#define TIME_OUT							0x89

#define TMP_DEV "/dev/temperature_dev"

#endif

